package Math;

public class _441_ArrangingCoins {
    public int arrangeCoins(int n) {
        int bits = 1;
        int total = n;
        int count = 0;
        while (total >= bits) {
            total -= bits;
            bits++;
            count++;
        }
        return count;
    }
}
